﻿using System;

namespace ReadyApps.Data.Wiki
{
    /// <summary>
    /// Represents the available publishing workflow settings.
    /// </summary>
    [Serializable]
    public class PublicationSettings
    {
        #region Properties

        /// <summary>
        /// Gets or sets a value indicating whether the publishing workflow is
        /// enabled.
        /// </summary>
        public bool Publishable { get; set; }

        #endregion

        #region Constructor

        /// <summary>
        /// Creates a new <see cref="PublicationSettings"/> object with the given publishing
        /// workflow status.
        /// </summary>
        /// <param name="publishable">A value indicating whether the publishing workflow is
        /// enabled.</param>
        public PublicationSettings(bool publishable)
        {
            Publishable = publishable;
        }

        #endregion
    }
}
